home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 April / Gamestar_61_2004-04_dvdb.iso / DVDStar / Editace / hltp.exe / {app} / Source Code / Half-Life Model Viewer / src / mdlviewer.h < prev    next >
C/C++ Source or Header  |  1999-06-16  |  2KB  |  101 lines

  1. //
  2. //                 Half-Life Model Viewer (c) 1999 by Mete Ciragan
  3. //
  4. // file:           mdlviewer.h
  5. // last modified:  Apr 28 1999, Mete Ciragan
  6. // copyright:      The programs and associated files contained in this
  7. //                 distribution were developed by Mete Ciragan. The programs
  8. //                 are not in the public domain, but they are freely
  9. //                 distributable without licensing fees. These programs are
  10. //                 provided without guarantee or warrantee expressed or
  11. //                 implied.
  12. //
  13. // version:        1.2
  14. //
  15. // email:          mete@swissquake.ch
  16. // web:            http://www.swissquake.ch/chumbalum-soft/
  17. //
  18. #ifndef INCLUDED_MDLVIEWER
  19. #define INCLUDED_MDLVIEWER
  20.  
  21.  
  22.  
  23. #ifndef INCLUDED_MXWINDOW
  24. #include <mx/mxWindow.h>
  25. #endif
  26.  
  27.  
  28.  
  29. #define IDC_FILE_LOADMODEL            1001
  30. #define IDC_FILE_LOADBACKGROUNDTEX    1002
  31. #define IDC_FILE_LOADGROUNDTEX        1003
  32. #define IDC_FILE_UNLOADGROUNDTEX    1004
  33. #define IDC_FILE_OPENPAKFILE        1005
  34. #define IDC_FILE_OPENPAKFILE2        1006
  35. #define IDC_FILE_CLOSEPAKFILE        1007
  36. #define IDC_FILE_RECENTMODELS1        1008
  37. #define IDC_FILE_RECENTMODELS2        1009
  38. #define IDC_FILE_RECENTMODELS3        1010
  39. #define IDC_FILE_RECENTMODELS4        1011
  40. #define IDC_FILE_RECENTPAKFILES1    1012
  41. #define IDC_FILE_RECENTPAKFILES2    1013
  42. #define IDC_FILE_RECENTPAKFILES3    1014
  43. #define IDC_FILE_RECENTPAKFILES4    1015
  44. #define IDC_FILE_EXIT                1016
  45.  
  46. #define IDC_OPTIONS_COLORBACKGROUND    1101
  47. #define IDC_OPTIONS_COLORGROUND        1102
  48. #define IDC_OPTIONS_COLORLIGHT        1103
  49. #define IDC_OPTIONS_CENTERVIEW        1104
  50. #define IDC_OPTIONS_MAKESCREENSHOT    1105
  51. #define IDC_OPTIONS_FILTERTEXTURES    1106
  52. #define IDC_OPTIONS_DUMP            1107
  53.  
  54. #define IDC_VIEW_FILEASSOCIATIONS    1201
  55.  
  56. #define IDC_HELP_GOTOHOMEPAGE        1301
  57. #define IDC_HELP_ABOUT                1302
  58.  
  59.  
  60.  
  61. class mxMenuBar;
  62. class GlWindow;
  63. class ControlPanel;
  64. class PAKViewer;
  65.  
  66.  
  67.  
  68. class MDLViewer : public mxWindow
  69. {
  70.     mxMenuBar *mb;
  71.     GlWindow *d_GlWindow;
  72.     ControlPanel *d_cpl;
  73.     PAKViewer *d_PAKViewer;
  74.  
  75.     void loadRecentFiles ();
  76.     void saveRecentFiles ();
  77.     void initRecentFiles ();
  78.  
  79. public:
  80.     // CREATORS
  81.     MDLViewer ();
  82.     ~MDLViewer ();
  83.  
  84.     // MANIPULATORS
  85.     virtual int handleEvent (mxEvent *event);
  86.     void redraw ();
  87.  
  88.     // ACCESSORS
  89.     mxMenuBar *getMenuBar () const { return mb; }
  90.     GlWindow *getGlWindow () const { return d_GlWindow; }
  91.     PAKViewer *getPAKViewer () const { return d_PAKViewer; }
  92. };
  93.  
  94.  
  95.  
  96. extern MDLViewer *g_MDLViewer;
  97. extern char g_appTitle[];
  98.  
  99.  
  100.  
  101. #endif // INCLUDED_MDLVIEWER